package com.woniuxy.three.pms.bean;

import lombok.Data;

import java.math.BigDecimal;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class UserBean {
    private Integer id;

    @NotNull
    private String name;

    @Pattern(regexp = "^[a-zA-Z0-9_-]{6,18}$",message = "密码长度的必须为6-18位 支持大小写数字和-_")
    private String password;

    @Pattern(regexp = "^[1-9][0-7]\\d{4}((19\\d{2}(0[13-9]|1[012])(0[1-9]|[12]\\d|30))|(19\\d{2}(0[13578]|1[02])31)|(19\\d{2}02(0[1-9]|1\\d|2[0-8]))|(19([13579][26]|[2468][048]|0[48])0229))\\d{3}(\\d|X|x)?$",
        message = "身份证不合法")
    private String idCard;
    @Pattern(regexp = "^1[3|4|5|7|8][0-9]{9}$" ,message = "手机号不合法")
    private String mobile;

    private BigDecimal cumulative;

    private Integer vipId;

    private VipBean vipBean;

    private String headImg;


}